# -*- coding: utf-8 -*-  
import numpy as np  
from matplotlib.font_manager import FontProperties
from matplotlib.ticker import MultipleLocator, FormatStrFormatter
import matplotlib.pyplot as plt
import numpy as np
from com.seq.sequence import  plot

w = np.arange(0.005, 0.06, 0.005)

ad = 0.12
ap = [0.87808690157532943, 0.88036838555950181, 0.87772863443214033, 0.87547053606842351, 0.87888514549230512, 0.87465260121293409, 0.87229497679990109, 0.8687184375202538, 0.86692770910331463, 0.85872706734907312, 0.79066883939887745]
ap = np.array(ap) - ad

ar = [0.58543417366946771, 0.60784313725490191, 0.58263305322128844, 0.56022408963585435, 0.55964145658263302, 0.55602240896358546, 0.55022408963585424, 0.51820728291316531, 0.49859943977591037, 0.49439775910364148, 0.39635854341736693]
ar = np.array(ar) - ad/3

print len(ap),len(ar)
plot(ap,ar,ar,ar,w)